﻿Partial Public Class AddMediaDialog

    Public ReadOnly Property MediaFileType() As MediaFileType
        Get
            If ComboTypes.SelectedItem IsNot Nothing Then
                Return CType(ComboTypes.SelectedItem, MediaFileType)

            End If
        End Get
    End Property



    Public ReadOnly Property MovieURL() As String
        Get
            Return TextBoxUrl.Text
        End Get

    End Property

    Public Sub New()

        ' This call is required by the Windows Form Designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.

    End Sub


    Public Sub okButton_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
        RaiseEvent OnOkButtonClick(MediaFileType, MovieURL)
    End Sub

    Public Delegate Sub OnOkButtonClickDel(ByVal p_Type As MediaFileType, ByVal p_Url As String)
    Public Event OnOkButtonClick As OnOkButtonClickDel


End Class
